:: $Id: make.bat 10 2015-01-09 02:30:58Z junioram@gmail.com $
::-----------------------------------------------------------------------------
:: Purpose: Yags project windows make
:: $Rev: 10 $
:: $Author: junioram@gmail.com $
:: $Date: 2015-01-09 02:30:58 +0000 (Fri, 09 Jan 2015) $


:: Caso necessário, alterar path a seguir:
@call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat"
@echo.
@echo off
PowerShell -NoProfile -ExecutionPolicy Bypass -Command Write-Host -ForegroundColor 14 "----------------"
PowerShell -NoProfile -ExecutionPolicy Bypass -Command Write-Host -ForegroundColor 14 "Building objetcs"
PowerShell -NoProfile -ExecutionPolicy Bypass -Command Write-Host -ForegroundColor 14 "----------------"
@echo on

@cl /EHsc src\*.c /c

@echo.
@echo off
PowerShell -NoProfile -ExecutionPolicy Bypass -Command Write-Host -ForegroundColor 14 "-------------------"
PowerShell -NoProfile -ExecutionPolicy Bypass -Command Write-Host -ForegroundColor 14 "Building executable"
PowerShell -NoProfile -ExecutionPolicy Bypass -Command Write-Host -ForegroundColor 14 "-------------------"
@echo on

@cl /EHsc *.obj /Fe: yacs.exe
